package com.lohika.builder
{
	import com.lohika.Entity;

	public class Director
	{
		private var builder:AbstractCrystalBuilder;
		
		public function setBuilder(builder:AbstractCrystalBuilder):void
		{
			this.builder = builder;
		}
		
		public function get entity():Entity
		{
			return builder.getEntity();
		}
		
		public function construct(column:uint, row:uint, type:uint):void
		{
			builder.createNewCrystal();
			
			builder.create(column, row, type );
			builder.attachGraphics();
			builder.position();
			builder.playEffect();
		}

	}
}